package com.example.testdemo.trigonView;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.example.testdemo.R;
import com.example.testdemo.bubble.BubbleWindow;

/**
 * Created by MrYan on 2018/8/30.
 * 三角形
 */

public class TriangleViewActivity extends Activity {
    private TriangleView triangleView;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_triangle);
        triangleView = findViewById(R.id.triangleView);
    }

    public void showPopupWindow(View view) {
        BubbleWindow window = new BubbleWindow(this);
        window.setAttachView(triangleView);
        window.show();
    }
}
